//
//  NGMessageListViewController.h
//  NetMobileLocation
//
//  Created by Mehmet Sinan Şahin on 2/9/12.
//  Copyright (c) 2012 netgis. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface NGMessageListViewController : UIViewController <UITableViewDelegate, UITableViewDataSource>{
    IBOutlet UITableView *messageTable;
    IBOutlet UINavigationItem *navItem;
    IBOutlet UIBarButtonItem *toLocationsButton;
    IBOutlet UISegmentedControl *segCtrlMessageFilter;
    IBOutlet UIView *viewNewMessage;
    
    IBOutlet UIButton *btnNewTextMessage;
    IBOutlet UIButton *btnNewAlarmMessage;
    
    IBOutlet UILabel *lblBtnTextMessage;
    IBOutlet UILabel *lblBtnAlarmMessage;
    
    NSMutableArray *messages;

}
@property (nonatomic, retain) IBOutlet UITableView *messageTable;
@property (nonatomic, retain) IBOutlet UIBarButtonItem *toLocationsButton;
@property (nonatomic, retain) IBOutlet UINavigationItem *navItem;
@property (nonatomic, retain) IBOutlet UISegmentedControl *segCtrlMessageFilter;
@property (nonatomic, retain) IBOutlet UIView *viewNewMessage;

@property (nonatomic, retain) IBOutlet UIButton *btnNewTextMessage;
@property (nonatomic, retain) IBOutlet UIButton *btnNewAlarmMessage;

- (IBAction)filterMessages:(id)sender;


-(IBAction) insertTestMessage: (id)sender;
-(IBAction) deleteAllMessage: (id)sender;
-(IBAction) newLocalMessage:(id)sender;
-(IBAction) closeNewMessageView:(id)sender;

-(IBAction) refresh:(id)sender;

@end
